package com.hmdp.service;

import com.hmdp.dto.Result;
import com.hmdp.entity.Shop;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 虎哥
 * @since 2021-12-22
 */
public interface IShopService extends IService<Shop> {

    Result queryById(Long id);

    Result update(Shop shop);
    //根据商铺类型查询商铺信息
    //并且可以根据距离查询附近的商户，按照距离从近到远排序
    Result queryShopByType(Integer typeId, Integer current, Double x, Double y);
}
